package com.geen.tuoke.network.interceptor

import com.geen.tuoke.network.utils.CacheUtil
import okhttp3.Interceptor
import okhttp3.Response
import java.io.IOException


class HeadInterceptor : Interceptor {

    @Throws(IOException::class)
    override fun intercept(chain: Interceptor.Chain): Response {
        val builder = chain.request().newBuilder()
        builder.addHeader("Authentication", CacheUtil.getToken()).build()
        return chain.proceed(builder.build())
    }

}